package com.rokyinfo.pdm.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 设备生成记录表
 * </p>
 *
 * @author YuanZhiJian
 * @since 2017-01-22
 */
@TableName("d_distribution_record")
public class DDistributionRecord extends Model<DDistributionRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备生成ID
     */
    @TableId("generator_id")
    private Long generatorId;

    /**
     * 设备生成编号
     */
    @TableField("generator_num")
    private String generatorNum;

    /**
     * 设备类型ID
     */
    @TableField("model_id")
    private Long modelId;

    @TableField(exist = false)
    private DModel model;

    /**
     * 生成数量
     */
    private Integer quantity;
    /**
     * 厂商ID
     */
    @TableField("firm_id")
    private Long firmId;

    @TableField(exist = false)
    private DFirm firm;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建者ID
     */
    @TableField("create_by")
    private Long createBy;


    public Long getGeneratorId() {
        return generatorId;
    }

    public void setGeneratorId(Long generatorId) {
        this.generatorId = generatorId;
    }

    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Long getFirmId() {
        return firmId;
    }

    public void setFirmId(Long firmId) {
        this.firmId = firmId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public DModel getModel() {
        return model;
    }

    public void setModel(DModel model) {
        this.model = model;
    }

    public DFirm getFirm() {
        return firm;
    }

    public void setFirm(DFirm firm) {
        this.firm = firm;
    }

    public String getGeneratorNum() {
        return generatorNum;
    }

    public void setGeneratorNum(String generatorNum) {
        this.generatorNum = generatorNum;
    }

    @Override
    protected Serializable pkVal() {
        return this.generatorId;
    }

}
